package com.yanqu.road.server.cmd.newmonopolymkt;

import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.newmonopolymkt.NewMonopolyMarketProto;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.command.Command;
import com.yanqu.road.server.manger.systemgroup.newmonopolymarket.NewMonopolyMarketMgr;
import com.yanqu.road.server.protocol.Protocol;
import io.netty.channel.ChannelHandlerContext;

@Cmd(code = Protocol.S_CROSS_NEW_MONOPOLY_MARKET_UPLOAD_SERVER_ABILITY_FROM_CROSS, desc = "上传区服能力(跨服通知)")
public class NewMonopolyMarketUploadAbilityRespCmd implements Command {

    @Override
    public void execute(ChannelHandlerContext ctx, YanQuMessage yanQuMessage) throws Exception {

        NewMonopolyMarketProto.NewMonopolyMarketUploadAbilityNotifyMsg msg = NewMonopolyMarketProto.NewMonopolyMarketUploadAbilityNotifyMsg.parseFrom(yanQuMessage.getBytes());

        NewMonopolyMarketMgr.uploadTodayServerUserAbility();
    }
}
